package com.xyh.student.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xyh.student.entity.Option;
import com.xyh.student.entity.ResponseData;
import com.xyh.student.service.OptionService;

@RestController
@RequestMapping("/option")
public class OptionController {
    
    @Autowired
    private OptionService optionService;

    //无用接口。。。
    @PostMapping("/insert")
    public ResponseData insert(Option option){
        return optionService.insertOption(option);
    }
}